package com.tpc.yaoxpt.main;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class LogModule {

    private static LogModule instance = new LogModule();


    public static LogModule getInstance() {
        if (instance == null) {
            instance = new LogModule();
        }
        return instance;
    }
    private StringProperty logInfo;

    public final StringProperty logInfoProperty(){
        if(logInfo==null){
            logInfo = new SimpleStringProperty("");
        }
        return logInfo;
    }

    public final String getLogInfo(){
        return logInfoProperty().get();
    }

    public final void setLogInfo(String logInfo){
        this.logInfoProperty().set(logInfo);
    }

//    public final void appendLogInfo(String logInfo){
//        this.logInfoProperty().set(this.logInfoProperty().get()+logInfo);
//    }

}
